import {
  wxRequest,
  wxUploadFile
} from '../utils/wxRequest';
import {
  Host
} from '../utils/constant'
import user from './user'

// 通过当前连接的wifi的mac地址获取店铺唯一ID
const wxJsCode2Sessionbak = (params) => wxRequest(params, Host + '/api/loginByWeixin');

// 上传图片到oss
const uploadPicOss = (params) => wxUploadFile(params, Host + '/api/uploadBigImageOSS');

module.exports = {
  wxJsCode2Sessionbak,
  uploadPicOss,
  ...user
}